#ifndef ISP_IMAGE_ANALYSIS_EXT
#define ISP_IMAGE_ANALYSIS_EXT


/*oOoOoOoOoOoOoOoOoOoOoOoOooOoOoOoOoOoO*/
//	Extended Image Analysis Module
/*oOoOoOoOoOoOoOoOoOoOoOoOooOoOoOoOoOoO*/
// This module is an extension to the ImageAnalysis module. It uses function from ImageAnalysis to convert
// the whole image, row by row, to grayscale pixels. 
// Also it announces the conversion of each row for the different threads. 

// ConvertImageToGrayScale
// =======================
// This function converts the image contained in the global variable "Image" to grayscale, based on the
// function available in the IspImageAnalysis module. Since it uses the global Image variable, this must be set 
// before using this function. 
// The function also sets the proper hReadEvents when a line has finished loading. This allows other threads to
// know when they can start running.
BOOL ConvertImageToGrayScale();

// for testing purposes
BOOL ConvertRowToGrayScale(int RowIndex, Byte_t *RowBuffer);

#endif